package com.linln.modules.withdrawal.service;

import com.linln.common.vo.JsonResult;
import com.linln.common.vo.PageResult;
import com.linln.modules.withdrawal.domain.Withdrawal;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * @author : pengliang
 * @version V1.0
 * @Project: timo
 * @Package com.linln.modules.withdrawal.service
 * @Descriptio /**
 * @Project: timo
 * @Package com.linln.modules.withdrawal.service
 * @Description: TODO
 * @date Date : 2020年12月30日 10:50
 */

public interface WithdrawalService extends IService<Withdrawal> {

    //申请提现
    JsonResult applyWithdrawal(String shopId, Double money);

    //查看提现记录
    Map<String, Object> getWithdrawal(Integer pageNum, Integer limit, String shopId, Integer status);

    //查看申请提现记录 layui
    PageResult<Withdrawal> getLayuiWithdrawal(Integer pageNum, Integer limit, String shopName, String phone, Integer status);

    //通过审核
    boolean updateExamineStatus(String withdrawalId,Integer status,String refuseReason,long userId);

    //获取详细信息
    Withdrawal getWithdrawalInfo(String withdrawalId);

    //已转账
    boolean adoptTransfer(String withdrawalId, MultipartFile file);
}
